import request from "@/utils/request";

// 歌词
export const musicLyric = (id) => {
	return request({
		url: `/lyric?id=${id}`,
		method: "GET",
	});
};

// 歌曲评论
export const musicComment = (id, limit, next) => {
	return request({
		url: `comment/music?id=${id}&limit=${limit}&offset=${next}`,
		method: "GET",
	});
};

// 歌曲信息
export const musicDetail = (id) => {
	return request({
		url: `/song/detail?ids=${id}`,
		method: "GET",
	});
};

// 相似歌曲
export const simiMusic = (id) => {
	return request({
		url: `/simi/song?id=${id}`,
		method: "GET",
	});
};

// 相似歌曲音频
export const musicUrl = (id) => {
	return request({
		url: `/song/url?id=${id}`,
		method: "GET",
	});
};
